﻿using System.Threading.Tasks;
using System.Web.Mvc;
using ZSoft.Telegram.Domain;
using ZSoft.Telegram.Services.Abstraction;
using ZSoft.Telegram.UI.Web.Infrastructure.AppEvents.BaseControllers;
using ZSoft.Telegram.UI.Web.Infrastructure.Filters;
using ZSoft.Telegram.UI.ViewModels;
using System;
using System.Collections.Generic;
using ZSoft.Telegram.DataAccess;
using System.Linq;
using System.Data.Entity;

namespace ZSoft.Telegram.UI.Web.Controllers
{
    public class CategoryController : EntityController<Category>
    {
        private readonly ICategoryService _service;

        public CategoryController(ICategoryService service)
        {
            this._service = service;
        }

        protected override IEntityService<Category> Service
        {
            get
            {
                return this._service;
            }
        }
    }
}